﻿<phone:PhoneApplicationPage 
    x:Class="WP7Square.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
>

    <StackPanel x:Name="LayoutRoot" Background="{StaticResource BackgroundBrush}">
             <!--This is the name of the application and page title-->
        <Grid Height="120" Width="480" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#3F787878"/>
                    <GradientStop Color="#00000000" Offset="0.5"/>
                    <GradientStop Color="#BB000000" Offset="1"/>
                </LinearGradientBrush>
            </Grid.Background>
            <Image Height="61" VerticalAlignment="Center" Source="Images/dark/foursquare_logo.png" />
        </Grid>

        <TextBlock x:Name="ErrorTextBox" Visibility="Collapsed" Style="{StaticResource PhoneTextBodyTextStyle}"/>
        <TextBlock Text="Email" Style="{StaticResource PhoneTextBodyTextStyle}"/>
        <TextBox x:Name="EmailTextBox" Height="90" FontSize="30" Text="" InputScope="EmailNameOrAddress"/>
        <TextBlock Text="Password" Style="{StaticResource PhoneTextBodyTextStyle}"/>
        <PasswordBox x:Name="PasswordTextBox" Height="90" Password="" />
        <Button x:Name="SignInButton" Content="Sign In" Height="90" Click="Button_Click" Background="{StaticResource PhoneBackgroundBrush}"/>
<!--        <TextBlock Margin="10 10 10 10" x:Name="Info" Visibility="Visible" TextWrapping="Wrap" HorizontalAlignment="Center"
                   Text="We will save your login details so you don't have to log in every time. To change this go to Settings." /> -->
    </StackPanel>
</phone:PhoneApplicationPage>